/**
 * Project Name:sq580_ow;<br/>
 * File Name:UserDao;<br/>
 * Package Name:com.sq580.ow.dao;<br/>
 * Date: 2018-06-22 11:54;<br/>
 * Copyright (c) 2018, www.sq580.com All Rights Reserved.;<br/>
 */
package com.sq580.ow.dao;

import com.sq580.ow.bean.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: UserDao<br/>
 * Function: TODO ADD FUNCTION(可选)<br/>
 * Reason: TODO ADD REASON(可选)<br/>
 * Date: 2018-06-22 11:54<br/>
 *
 * @author xiawei
 */
@Repository
public interface UserDao {
    public User getUserById(Integer id);

    public List<User> getUserList();

    public int add(User user);

    public int update(Integer id, User user);

    public int delete(Integer id);
}